Skip to content

ref(aws-serverless): Vendor aws-sdk instrumentation#20988

Merged
nicohrubec merged 13 commits into
developfrom
nh/vendor-aws-sdk-instrumentation-v2
May 20, 2026
Merged

ref(aws-serverless): Vendor aws-sdk instrumentation#20988
nicohrubec merged 13 commits into
developfrom
nh/vendor-aws-sdk-instrumentation-v2

Conversation

@nicohrubec
Copy link
Copy Markdown
Member

@nicohrubec nicohrubec commented May 18, 2026

Vendors @opentelemetry/instrumentation-aws-sdk into the SDK with no logic changes. TokenUsage and ConverseStreamOutput types from @aws-sdk/client-bedrock-runtime are inlined as simplified interfaces to avoid requiring the package as a dependency.

Closes #20942

nicohrubec and others added 6 commits May 18, 2026 15:02
Closes #20514

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 18, 2026

size-limit report 📦

⚠️ Warning: Base artifact is not the latest one, because the latest workflow run is not done yet. This may lead to incorrect results. Try to re-run all tests to get up to date results.

Path Size % Change Change
@sentry/browser 26.92 kB - -
@sentry/browser - with treeshaking flags 25.35 kB - -
@sentry/browser (incl. Tracing) 44.91 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 47.16 kB - -
@sentry/browser (incl. Tracing, Profiling) 49.91 kB - -
@sentry/browser (incl. Tracing, Replay) 84.54 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 74.04 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 89.25 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 101.87 kB - -
@sentry/browser (incl. Feedback) 44.1 kB - -
@sentry/browser (incl. sendFeedback) 31.73 kB - -
@sentry/browser (incl. FeedbackAsync) 36.84 kB - -
@sentry/browser (incl. Metrics) 28.01 kB - -
@sentry/browser (incl. Logs) 28.15 kB - -
@sentry/browser (incl. Metrics & Logs) 28.84 kB - -
@sentry/react 28.66 kB - -
@sentry/react (incl. Tracing) 47.16 kB - -
@sentry/vue 31.85 kB - -
@sentry/vue (incl. Tracing) 46.78 kB - -
@sentry/svelte 26.94 kB - -
CDN Bundle 29.34 kB - -
CDN Bundle (incl. Tracing) 47.47 kB - -
CDN Bundle (incl. Logs, Metrics) 30.71 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 48.59 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 70.03 kB - -
CDN Bundle (incl. Tracing, Replay) 84.94 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 86 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 90.8 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 91.88 kB - -
CDN Bundle - uncompressed 86.46 kB - -
CDN Bundle (incl. Tracing) - uncompressed 142.93 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 90.66 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 146.4 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 215.38 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 261.71 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 265.16 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 275.41 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 278.85 kB - -
@sentry/nextjs (client) 49.66 kB - -
@sentry/sveltekit (client) 45.4 kB - -
@sentry/core/server 75.75 kB - -
@sentry/core/browser 62.52 kB - -
@sentry/node-core 62.22 kB +0.01% +1 B 🔺
@sentry/node 165.83 kB +0.01% +1 B 🔺
@sentry/node - without tracing 74.66 kB +0.01% +1 B 🔺
@sentry/aws-serverless 86.86 kB -20.77% -22.77 kB 🔽
@sentry/cloudflare (withSentry) - minified 171.52 kB - -
@sentry/cloudflare (withSentry) 429.62 kB - -

View base workflow run

Previously a transitive dependency of @opentelemetry/instrumentation-aws-sdk,
now needed directly by the vendored code.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Comment thread packages/aws-serverless/package.json
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@nicohrubec nicohrubec marked this pull request as ready for review May 19, 2026 11:50
@nicohrubec nicohrubec requested a review from a team as a code owner May 19, 2026 11:50
Comment thread packages/aws-serverless/src/integration/aws/vendored/aws-sdk.ts
@aldenquimby
Copy link
Copy Markdown
Contributor

@nicohrubec does this close #19237 ?

@nicohrubec
Copy link
Copy Markdown
Member Author

@aldenquimby it does not

Copy link
Copy Markdown
Member

@JPeer264 JPeer264 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Those are quite some new files :D

packageSpecificConfig: {
// Used for our custom eventContextExtractor
external: ['@opentelemetry/api'],
output: {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

m: Checking-in was this done on purpose?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it was, build failed without this because the paths changed

*
* NOTICE from the Sentry authors:
* - Vendored from: https://github.com/open-telemetry/opentelemetry-js-contrib/tree/15ef7506553f631ea4181391e0c5725a56f0d082/packages/instrumentation-aws-sdk
* - Upstream version: @opentelemetry/instrumentation-aws-sdk@0.73.0
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

m: I just cross-checked the vendored version is different than the vendored one, so we theoretically just also upgraded this instrumentation. Is this wanted? (as it is part as ref in the commit)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as discussed for these cases it should be fine. I am checking the changelog for each and use the latest if there are no notable changes

Comment thread .oxlintrc.base.json Outdated
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 5a671b6. Configure here.

@nicohrubec nicohrubec merged commit a3e50ec into develop May 20, 2026
524 of 526 checks passed
@nicohrubec nicohrubec deleted the nh/vendor-aws-sdk-instrumentation-v2 branch May 20, 2026 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Vendor @opentelemetry/instrumentation-aws-sdk

3 participants